import request from '@/config/axios'

// 列表
export const getSafetyList = (data) => {
  return request.get({
    url: '/service/inspection-logs/page',
    params: data
  })
}

// 获取员工详情信息
export const getSafetyDetail = (id) => {
  return request.get({
    url: '/service/inspection-logs/get',
    params: { id }
  })
}


// 导出
export const exportSafety = (data) => {
  return request.download({
    url: '/service/inspection-logs/export-excel',
    params: data,
  })
}


// 编辑
export const editSafety = (data) => {
  return request.put({
    url: '/service/inspection-logs/update',
    data,
  })
}